

#!/usr/bin/bash

node_type="ndtest"
node_name="ndtest"
if test -z "$1"
then
  echo "param is nil"
  account=123456
else
  account=$1
fi
echo "start node ->"$node_name
#编译proto文件
cd ../res
./res.sh
cd ../tools

#
skynet_path=../depends/skynet/skynet
src_path=../src
#skynet启动的配置文件
config_path="$src_path/config/test.config"
export node_type=$node_type
export node_name=$node_name
export account=$account
echo $config_path

$skynet_path  "$config_path" "$node_name"

